/****************************************************************************
** Meta object code from reading C++ file 'diagramview.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../gVision/widget/diagramscene/diagramview.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'diagramview.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.12.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_DiagramGraphicsView_t {
    QByteArrayData data[9];
    char stringdata0[86];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DiagramGraphicsView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DiagramGraphicsView_t qt_meta_stringdata_DiagramGraphicsView = {
    {
QT_MOC_LITERAL(0, 0, 19), // "DiagramGraphicsView"
QT_MOC_LITERAL(1, 20, 12), // "itemSelected"
QT_MOC_LITERAL(2, 33, 0), // ""
QT_MOC_LITERAL(3, 34, 14), // "QGraphicsItem*"
QT_MOC_LITERAL(4, 49, 4), // "item"
QT_MOC_LITERAL(5, 54, 6), // "zoomIn"
QT_MOC_LITERAL(6, 61, 7), // "zoomOut"
QT_MOC_LITERAL(7, 69, 4), // "zoom"
QT_MOC_LITERAL(8, 74, 11) // "scaleFactor"

    },
    "DiagramGraphicsView\0itemSelected\0\0"
    "QGraphicsItem*\0item\0zoomIn\0zoomOut\0"
    "zoom\0scaleFactor"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DiagramGraphicsView[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       4,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   34,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    0,   37,    2, 0x0a /* Public */,
       6,    0,   38,    2, 0x0a /* Public */,
       7,    1,   39,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Double,    8,

       0        // eod
};

void DiagramGraphicsView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<DiagramGraphicsView *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->itemSelected((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
        case 1: _t->zoomIn(); break;
        case 2: _t->zoomOut(); break;
        case 3: _t->zoom((*reinterpret_cast< double(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsItem* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (DiagramGraphicsView::*)(QGraphicsItem * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiagramGraphicsView::itemSelected)) {
                *result = 0;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject DiagramGraphicsView::staticMetaObject = { {
    &QGraphicsView::staticMetaObject,
    qt_meta_stringdata_DiagramGraphicsView.data,
    qt_meta_data_DiagramGraphicsView,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *DiagramGraphicsView::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *DiagramGraphicsView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_DiagramGraphicsView.stringdata0))
        return static_cast<void*>(this);
    return QGraphicsView::qt_metacast(_clname);
}

int DiagramGraphicsView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGraphicsView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void DiagramGraphicsView::itemSelected(QGraphicsItem * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
struct qt_meta_stringdata_DiagramView_t {
    QByteArrayData data[35];
    char stringdata0[455];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DiagramView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DiagramView_t qt_meta_stringdata_DiagramView = {
    {
QT_MOC_LITERAL(0, 0, 11), // "DiagramView"
QT_MOC_LITERAL(1, 12, 18), // "buttonGroupClicked"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 2), // "id"
QT_MOC_LITERAL(4, 35, 10), // "deleteItem"
QT_MOC_LITERAL(5, 46, 12), // "saveItemInfo"
QT_MOC_LITERAL(6, 59, 7), // "runItem"
QT_MOC_LITERAL(7, 67, 19), // "pointerGroupClicked"
QT_MOC_LITERAL(8, 87, 12), // "itemInserted"
QT_MOC_LITERAL(9, 100, 12), // "DiagramItem*"
QT_MOC_LITERAL(10, 113, 4), // "item"
QT_MOC_LITERAL(11, 118, 12), // "textInserted"
QT_MOC_LITERAL(12, 131, 18), // "QGraphicsTextItem*"
QT_MOC_LITERAL(13, 150, 18), // "currentFontChanged"
QT_MOC_LITERAL(14, 169, 4), // "font"
QT_MOC_LITERAL(15, 174, 15), // "fontSizeChanged"
QT_MOC_LITERAL(16, 190, 4), // "size"
QT_MOC_LITERAL(17, 195, 17), // "sceneScaleChanged"
QT_MOC_LITERAL(18, 213, 5), // "scale"
QT_MOC_LITERAL(19, 219, 16), // "textColorChanged"
QT_MOC_LITERAL(20, 236, 16), // "lineColorChanged"
QT_MOC_LITERAL(21, 253, 19), // "textButtonTriggered"
QT_MOC_LITERAL(22, 273, 19), // "lineButtonTriggered"
QT_MOC_LITERAL(23, 293, 16), // "handleFontChange"
QT_MOC_LITERAL(24, 310, 12), // "itemSelected"
QT_MOC_LITERAL(25, 323, 14), // "QGraphicsItem*"
QT_MOC_LITERAL(26, 338, 18), // "itemPositionChange"
QT_MOC_LITERAL(27, 357, 5), // "about"
QT_MOC_LITERAL(28, 363, 10), // "clearScene"
QT_MOC_LITERAL(29, 374, 12), // "loadItemInfo"
QT_MOC_LITERAL(30, 387, 14), // "updateDuration"
QT_MOC_LITERAL(31, 402, 18), // "on_modelPathChange"
QT_MOC_LITERAL(32, 421, 14), // "isReloadModels"
QT_MOC_LITERAL(33, 436, 9), // "on_runEnd"
QT_MOC_LITERAL(34, 446, 8) // "isRunEnd"

    },
    "DiagramView\0buttonGroupClicked\0\0id\0"
    "deleteItem\0saveItemInfo\0runItem\0"
    "pointerGroupClicked\0itemInserted\0"
    "DiagramItem*\0item\0textInserted\0"
    "QGraphicsTextItem*\0currentFontChanged\0"
    "font\0fontSizeChanged\0size\0sceneScaleChanged\0"
    "scale\0textColorChanged\0lineColorChanged\0"
    "textButtonTriggered\0lineButtonTriggered\0"
    "handleFontChange\0itemSelected\0"
    "QGraphicsItem*\0itemPositionChange\0"
    "about\0clearScene\0loadItemInfo\0"
    "updateDuration\0on_modelPathChange\0"
    "isReloadModels\0on_runEnd\0isRunEnd"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DiagramView[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      23,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    1,  129,    2, 0x08 /* Private */,
       4,    0,  132,    2, 0x08 /* Private */,
       5,    0,  133,    2, 0x08 /* Private */,
       6,    0,  134,    2, 0x08 /* Private */,
       7,    1,  135,    2, 0x08 /* Private */,
       8,    1,  138,    2, 0x08 /* Private */,
      11,    1,  141,    2, 0x08 /* Private */,
      13,    1,  144,    2, 0x08 /* Private */,
      15,    1,  147,    2, 0x08 /* Private */,
      17,    1,  150,    2, 0x08 /* Private */,
      19,    0,  153,    2, 0x08 /* Private */,
      20,    0,  154,    2, 0x08 /* Private */,
      21,    0,  155,    2, 0x08 /* Private */,
      22,    0,  156,    2, 0x08 /* Private */,
      23,    0,  157,    2, 0x08 /* Private */,
      24,    1,  158,    2, 0x08 /* Private */,
      26,    1,  161,    2, 0x08 /* Private */,
      27,    0,  164,    2, 0x08 /* Private */,
      28,    0,  165,    2, 0x08 /* Private */,
      29,    0,  166,    2, 0x08 /* Private */,
      30,    0,  167,    2, 0x08 /* Private */,
      31,    1,  168,    2, 0x08 /* Private */,
      33,    1,  171,    2, 0x08 /* Private */,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, 0x80000000 | 12,   10,
    QMetaType::Void, QMetaType::QFont,   14,
    QMetaType::Void, QMetaType::QString,   16,
    QMetaType::Void, QMetaType::QString,   18,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 25,   10,
    QMetaType::Void, 0x80000000 | 25,   10,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   32,
    QMetaType::Void, QMetaType::Bool,   34,

       0        // eod
};

void DiagramView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<DiagramView *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->buttonGroupClicked((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->deleteItem(); break;
        case 2: _t->saveItemInfo(); break;
        case 3: _t->runItem(); break;
        case 4: _t->pointerGroupClicked((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->itemInserted((*reinterpret_cast< DiagramItem*(*)>(_a[1]))); break;
        case 6: _t->textInserted((*reinterpret_cast< QGraphicsTextItem*(*)>(_a[1]))); break;
        case 7: _t->currentFontChanged((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
        case 8: _t->fontSizeChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 9: _t->sceneScaleChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 10: _t->textColorChanged(); break;
        case 11: _t->lineColorChanged(); break;
        case 12: _t->textButtonTriggered(); break;
        case 13: _t->lineButtonTriggered(); break;
        case 14: _t->handleFontChange(); break;
        case 15: _t->itemSelected((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
        case 16: _t->itemPositionChange((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
        case 17: _t->about(); break;
        case 18: _t->clearScene(); break;
        case 19: _t->loadItemInfo(); break;
        case 20: _t->updateDuration(); break;
        case 21: _t->on_modelPathChange((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 22: _t->on_runEnd((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsTextItem* >(); break;
            }
            break;
        case 15:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsItem* >(); break;
            }
            break;
        case 16:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsItem* >(); break;
            }
            break;
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject DiagramView::staticMetaObject = { {
    &QMainWindow::staticMetaObject,
    qt_meta_stringdata_DiagramView.data,
    qt_meta_data_DiagramView,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *DiagramView::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *DiagramView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_DiagramView.stringdata0))
        return static_cast<void*>(this);
    return QMainWindow::qt_metacast(_clname);
}

int DiagramView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 23)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 23;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 23)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 23;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
